-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Julia: add binding for runtime feature detection #13992
Conversation
Let's merge this first, #13964 the enum is now internalized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API that this PR depends on needs update which is being addressed in #13964
@mxnet-label-bot add [pr-awaiting-review] |
so... |
44156b5
to
f145581
Compare
New API: julia> mx.libinfo_features()
30-element Array{MXNet.mx.MXRuntime.LibFeature,1}:
✖ CUDA
✖ CUDNN
✖ NCCL
✖ CUDA_RTC
✖ TENSORRT
✔ CPU_SSE
✔ CPU_SSE2
✔ CPU_SSE3
✔ CPU_SSE4_1
✔ CPU_SSE4_2
✖ CPU_SSE4A
✔ CPU_AVX
✖ CPU_AVX2
✖ OPENMP
✖ SSE
✔ F16C
✖ JEMALLOC
✖ BLAS_OPEN
✖ BLAS_ATLAS
✖ BLAS_MKL
✖ BLAS_APPLE
✔ LAPACK
✖ MKLDNN
✖ OPENCV
✖ CAFFE
✖ PROFILER
✖ DIST_KVSTORE
✖ CXX14
✖ SIGNAL_HANDLER
✖ DEBUG |
And I want to add a comparison method like: :CUDA in mx.libinfo_features() to let user check a feature enabled or not. |
What is ":CUDA" in Julia? is it an atom like in erlang? |
Yes the new API just returns a list of struct with boolean field indicating enabled or not. |
yeah, |
LGTM % I don't know Julia. |
Finally, I decide to make this: julia> mx.isenabled(:CUDA)
false
julia> mx.isenabled(:CPU_SSE)
true |
I guess this can be resumed when you have some bandwidth. |
84aec6e
to
93f8e59
Compare
okay, I updated it. |
Needs rebase |
93f8e59
to
6d9e429
Compare
rebased |
well, the ci status blocks the merge button. |
could you try another rebase? CI had a hiccup a couple of days ago. |
sure |
6d9e429
to
1b5f894
Compare
Ref: #13549